/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aicue1.services;

import aicue1.beans.Customer;
import aicue1.soapfaults.CustomerAlreadyExistsFault;
import aicue1.soapfaults.UnknownCustomerFault;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.core.Response;

/**
 *
 * @author Tom
 */
@WebService(name = "CustomerManagementService")
public interface CustomerManagementServiceSoap
{
    @WebMethod(operationName="getCustomer")
    public Customer getCustomer(@WebParam(name = "id") String id) throws UnknownCustomerFault;

    @WebMethod(operationName="updateCustomer")
    public void updateCustomer(@WebParam(name = "id") String id, Customer customer) throws UnknownCustomerFault;

    @WebMethod(operationName="addCustomer")
    public void addCustomer(Customer customer) throws CustomerAlreadyExistsFault;

    @WebMethod(operationName="deleteCustomer")
    public void deleteCustomer(@WebParam(name = "id") String id) throws UnknownCustomerFault;
}